package com.godman.liu.loggingdemo.event;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;

@Slf4j
public class MyEventListener implements ApplicationListener<MyApplicationEvent> {
    @Override
    public void onApplicationEvent(MyApplicationEvent event) {
        log.info("onApplicationEvent,eventname:" + event.getEventName() + ",source:" + event.getSource().toString() + ",timestamp" + event.getTimestamp());
    }
}
